
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
       //下面代码的执行结果是什么
       function setValue(){
           var p1=p2={};
           p1.name='guoqing';
           p2.value='web';
           console.log(p1.value,p2.name);//web guoqing
       }
       setValue();
       console.log(typeof p1);//undefined
       console.log(typeof p2);//object
    </script>
</body>
</html>